<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户注册</title>
</head>
<body>

    <h2>用户注册</h2>
    <form action="register1" method="post">
        <table>
            <tr>
            <td>用户名：</td>
            <td><input type="text" name="username"/><br/></td>
        </tr>
            <tr>
                <td>密码:</td>
                <td><input type="password" name="password"/><br/></td>
            </tr>
            <tr>
                <td>确认密码:</td>
                <td><input type="password" name="repassword"><br/></td>
            </tr>
            <tr>
                <td> 邮箱:</td>
                <td><input type="email" name="email"><br/></td>
            </tr>
            <tr>
                <td>验证码：</td>
                <td><input type="text" name="vcode"/><img id="img1" src="validateservlet" onclick="changeImg()"><a href="" onclick="return changeImg()">看不清?</a><br/></td>
            </tr>
            <tr>
                <td colspan="2"> <input type="submit" value="提交"/></td>
            </tr>
        </table>
        
        
        <script type="text/javascript">
            function changeImg() {
                var img1=document.getElementById("img1");
                img1.src="validateservlet?n="+Math.random();
                return false;
            }
            
        </script>
    </form>
</body>
</html>